package com.zlop.sys.service;

import java.util.List;

import com.nyvi.support.base.service.BaseService;
import com.zlop.sys.model.SysUserDO;
import com.zlop.sys.query.SysUserQuery;

/**
 * SysUserService用户接口
 *
 * @author  曾令鹏
 * @since   jdk1.8
 * @version 2018年4月9日 曾令鹏
 */
public interface SysUserService extends BaseService<SysUserDO> {
	
	/**
	 * 获取单条
	 * @return
	 */
	SysUserDO getEntity(Long id);

	/**
	 * 获取所有
	 * @return
	 */
	List<SysUserDO> getList(SysUserQuery query);
	
	/**
	 * 修改/更新
	 * @param sysUser
	 * @return
	 */
	SysUserDO saveOrUpdate(SysUserDO sysUser) throws Exception;
	
	/**
	 * 单条删除
	 * 
	 * @param id 主键
	 * @return 影响行数
	 * @throws Exception 异常
	 */
	public int deleteByPrimaryKey(Long id) throws Exception;
	
	/**
	 * 批量删除
	 * 
	 * @param idList id集合
	 * @return 影响行数
	 * @throws Exception 异常
	 */
	public int batchDeleteByPrimaryKey(List<Long> idList) throws Exception;
	
}
